//
//  TDBeautyView.m
//  liveDemo
//
//  Created by tuandai on 2017/4/10.
//  Copyright © 2017年 tuandai. All rights reserved.
//

#import "TDBeautyView.h"

@interface TDBeautyView ()


@property (weak, nonatomic) IBOutlet UIView *toolSupView;


@end

@implementation TDBeautyView

+(instancetype)createView {
    
    return [[NSBundle mainBundle] loadNibNamed:NSStringFromClass([self class]) owner:nil options:nil].firstObject;
}

-(void)awakeFromNib {
    [super awakeFromNib];
    self.backgroundColor = [UIColor clearColor];
    UITapGestureRecognizer *tap = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(toolSupViewClick)];
    [self.toolSupView addGestureRecognizer:tap];
    
    UITapGestureRecognizer *tap1 = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(selfScreenClick)];
    [self addGestureRecognizer:tap1];
}

- (void)selfScreenClick {
    self.hidden = YES;
}

- (void)toolSupViewClick {
    
}

- (IBAction)beautyClick:(UIButton *)sender {
    
}

- (IBAction)filterClick:(UIButton *)sender {
}

- (IBAction)dynamicClick:(UIButton *)sender {
}

- (IBAction)greenScreenClick:(UIButton *)sender {
}


- (IBAction)sliderValueChange:(UISlider *)sender {
    if ([self.delegate respondsToSelector:@selector(slidersValueChange:)]) {
        [self.delegate slidersValueChange:sender];
    }
    
    
    
}

@end
